package com.twu.biblioteca;


public class Book {
    public int number;
    public String title;
    public BookState status = BookState.AVAILABLE;


    public Book(int number, String title, BookState status) {
        this.number = number;
        this.title = title;
        this.status = status;
    }

    public void setStatus(BookState newStatus){
        status = newStatus;
    }

    public BookState getStatus(){
        return status;
    }

    public boolean isAvailable() {
        return this.status == BookState.AVAILABLE;
    }

    public int getNumber() {
        return number;
    }
}

